<extend name="Layout/ins_page" />
   
<block name="content">
{:W('PageHeader/adv_search',array('name'=>'中银订单反馈','search'=>'M'))}
<p style="color: red">例: 如需重新从25状态开始反馈,请删除大于25的所有状态(包括25)</p>
 <link href="/sap/demo.css" rel="stylesheet" type="text/css" />
    <script src="/sap/scripts/boot.js" type="text/javascript"></script>
<form method="post" name="form_adv_search" id="form_adv_search">

	<div class="adv_search panel panel-default hidden" id="adv_search">
	
		<div class="panel-heading">
			<div class="row">
				<h4 class="col-xs-6">高级搜索</h4>
				<div class="col-xs-6 text-right">
					<a  class="btn btn-sm btn-info" onclick="submit_adv_search();">搜索</a>
					<a  class="btn btn-sm" onclick="close_adv_search();">关闭</a>
				</div>
			</div>
		</div>
		<div class="panel-body">
		<div class="form-group col-sm-6">
				<!-- <label class="col-sm-4 control-label" for="li_name">状态：</label>
				<div class="col-sm-8">
					<select class="form-control" name="type" id="sex">
						<option value="-1">全部</option>
						<option value="0">待回复</option>
						<option value="1">已处理</option>	
						<option value="2">已完结</option>					
					</select>
				</div> -->
			</div>

			
		</div>
	</div>
</form>
<div class="ul_table ul_table_responsive" style="font-size:14px" >
	<ul>
		<li class="thead" style="padding-left:10px">
			<div class="autocut auto">
			    <span class="col-18 ">订单号</span>
				<span class="col-16 ">反馈状态代码</span>
				<span class="col-16 ">反馈时间</span>
				<span class="col-16 ">操作</span>
			</div>
			
		</li>
	</ul>
	<empty name="list">
		<ul>
			<li class="no-data">
				没找到数据
			</li>
		</ul>
		<else/>
		<form method="post" action="" name="form_data" id="form_data">
			<ul>
			
				<?php foreach($list as $vo){
				
				?>
					<li class="tbody ">

						<div class="autocut auto">
						    <span class="col-18 "><?php echo $vo['order_code']?>&nbsp;</span>
							<span class="col-16 "><?php echo $vo['status']?>&nbsp;<br/><?php echo $vo['utime']?></span>
						    <span class="col-16 "><?php echo date('Y-m-d H:i:s',$vo['ctime'])?>&nbsp;</span>
							<span class="col-16 ">
							<a href="javascript:void(0)" onclick="del('<?php echo $vo['id']?>')" >删除</a></span>
							 </div>
					</li>
				<?php } ?>
			</ul>
		</form>
		<div class="pagination">
			{$page}
		</div>
	</empty>
</div>

    <div style="right:20px; top:88px; position:absolute;display: none;z-index: 99999;background-color: #ffffff;box-shadow: -2px 10px 10px  #888888;-moz-box-shadow: -2px 10px 10px #888888;" id='qdan-show'>
                <div id="grid2" class="mini-datagrid" style="width:600px;height:500px;border: 1px solid gray"                     
                    idField="id"  multiSelect="true" showPager="false"
                    allowCellEdit="true" allowCellSelect="true" 
                >
                    <div property="columns">
                        <div type="checkcolumn"></div>
                         <div header="物料编号" field="code" width="80px"></div>
                         <div header="物料名称" field="name"  width="200px"></div>
                            
                        </div>
                    </div>
                   &nbsp; <input type="button" value="移除所选物料" onclick="removes()" style="width:100px;"/> &nbsp;&nbsp;<a  href='javascript:void(0)' class='close_show' >关闭</a>
    </div>
    
    


<script type="text/javascript">

     function del(id){
    	 var r=confirm("删除记录后,订单将重新反馈,确定要删除吗?");
    	 if(!r) return ;
 
    	   $.ajax({
               url: "/order/delccbpush",
               type: "post",
               data: { id:id},
               success: function (data) {
               	 if(data>0){
                   alert('删除成功');
                   location.reload();  
               	 }else
               		 alert('删除失败');
               }
           });
    	 
     }
        
    </script>
</block>

  

